package chaoyi.kuo.classes

class Person(fn: String, ln: String, s: Person) {
	
	val firstName = fn
	val lastName = ln
	var spouse = s
	
	def this(fn: String, ln: String) = { this(fn, ln, null) }
	
	def introduction: String = 
		return "我的名字是" + lastName + " " + firstName + " " + 
			(if (spouse != null) " 对方的名字是, " + spouse.lastName + " " + spouse.firstName + "。" else "。")
}


